<template>
  <div>
    <el-form-item v-if="activeData.openCut !== undefined" label="截取字符">
      <el-switch v-model="activeData.openCut" />
    </el-form-item>
    <div v-if="activeData.openCut">
      <div class="el-form-item__label block">截取字符长度</div>
      <el-row :gutter="10" type="flex" align="middle">
        <el-col :span="10">
          <el-input-number v-model="activeData.cutStart" :min="1" :controls="false" />
        </el-col>
        <el-col :span="2"> 到</el-col>
        <el-col :span="5">
          <el-input-number v-model="activeData.cutEnd" :min="1" :controls="false" />
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ConfigItemScan',
  props: ['activeData'],
  data() {
    return {}
  },
  methods: {}
}
</script>

<style scoped>
.block {
  display: block;
  float: none;
}
</style>
